<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
    <p id="p">hello world</p>
    <script>
        var p=document.getElementById("p");
        $.ajax({
            method:"get",
             url: "https://www.easy-mock.com/mock/5b3ae098d294426e05198b4e/getTest",
             dataType:"json",
             success:function(res){
                 console.log(res.data.content);
                 p.innerHTML=res.data.content;
             },
             error:function(xhr){
                 document.body.innerHTML=xhr.status;
             }
        })
    </script>
</body>
</html>